<?php

require_once './include/common.inc.php';

DomaiJump();

//echo md5('123456');

$page_title = 'jans2en furniture - Home';
$menu_id = 1;
$baner_img='<img height="63" width="227" alt="Jans2en"   src="css/images/jansen_logo_text.jpg"  />';


$scriptIndexImg1 = '';
$scriptIndexImg2 = '';
if(count($_indeximgs)>0)
{
	$scriptIndexImg1 = "jsonImg1 = {\"data\":[";
	$scriptIndexImg2 = "jsonImg2 = {\"data\":[";
	$sep1 = '';
	$sep2 = '';
	$jsonFormat = "{\"name\":\"%s\",\"src\":\"%s\"}";
	foreach($_indeximgs as $k => $v){  
		$v["photo"] = "zh/attachments/".$v["photo"]; 		
		if(file_exists($v["photo"]))	
		{
			if($v["imgsharp"] == 1) 
			{
				$scriptIndexImg1 .= $sep1.sprintf($jsonFormat,$v["name"],$v["photo"]);	
				$sep1 = ",";		
			}
			elseif ($v["imgsharp"] == 2) 
			{
				$scriptIndexImg2 .= $sep2.sprintf($jsonFormat,$v["name"],$v["photo"]);	
				$sep2 = ",";				
			}
		}
	}
	$scriptIndexImg1 .= "]};";
	$scriptIndexImg2 .= "]};";
}

require_once PrintEot('header_index');
require_once PrintEot('index');
require_once PrintEot('footer');

?>